package com.yellow.dispatchservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("vehicles")
public class Vehicle {

    @TableId(value = "vehicle_id", type = IdType.AUTO)
    private Integer vehicleId;

    @TableField("license_plate")
    private String licensePlate;

    @TableField("model")
    private String model;

    @TableField("status")
    private String status;

    @TableField("last_maintenance")
    private LocalDate lastMaintenance;

    @TableField("capacity")
    private Integer capacity;
}
